package com.nulstudio.cloud.inventory.client;

import com.nulstudio.cloud.common.domain.vo.CommodityVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "nul-commodity")
public interface CommodityClient {

    @GetMapping("/commodity/{id}")
    CommodityVo getCommodityById(@PathVariable("id") int id);
}
